import request from '@/utils/request'

// 查询成品列列表
export function listFinishproduct(query) {
  return request({
    url: '/production/finishproduct/list',
    method: 'get',
    params: query
  })
}

// 查询成品列详细
export function getFinishproduct(finishedProductId) {
  return request({
    url: '/production/finishproduct/' + finishedProductId,
    method: 'get'
  })
}

// 新增成品列
export function addFinishproduct(data) {
  return request({
    url: '/production/finishproduct',
    method: 'post',
    data: data
  })
}

// 修改成品列
export function updateFinishproduct(data) {
  return request({
    url: '/production/finishproduct',
    method: 'put',
    data: data
  })
}

// 删除成品列
export function delFinishproduct(finishedProductId) {
  return request({
    url: '/production/finishproduct/' + finishedProductId,
    method: 'delete'
  })
}

// 入库成品列表
export function operationFinishedProduct(data) {
  return request({
    url: '/production/finishproduct/operation',
    method: 'post',
    data: data
  })
}

